using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace FeedStore2OPML
{
    [XmlRoot("outline")]
    public class Outline
    {
        private string text;

        [XmlAttribute("text")]
        public string Text
        {
            get { return text; }
            set { text = value; }
        }

        private string title;

        [XmlAttribute("title")]
        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        private string type;

        [XmlAttribute("type")]
        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        private string htmlUrl;

        [XmlAttribute("htmlUrl")]
        public string HtmlUrl
        {
            get { return htmlUrl; }
            set { htmlUrl = value; }
        }

        private string xmlUrl;

        [XmlAttribute("xmlUrl")]
        public string XmlUrl
        {
            get { return xmlUrl; }
            set { xmlUrl = value; }
        }

        private List<Outline> outline =  new List<Outline>();

        [XmlElement("outline", typeof(Outline))]
        public List<Outline> SubOutline
        {
            get { return outline; }
        }

        public void AddSubItem(Outline item)
        {
            outline.Add(item);
        }
    }
}
